﻿using AcademiaInteligenteData;
using AcademiaInteligenteData.BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AcademiaInteligenteWeb
{
    public partial class NewEvento : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSalvar_Click(object sender, EventArgs e)
        {
            Evento evento = new Evento();
            evento.Descricao = txtDescricao.Text.Trim();
            evento.Data = Convert.ToDateTime(txtData.Text);
            new BoEvento().InserirEvento(evento);
        }
    }
}